#include "stdafx.h"
#include "MasksCollection.h"

void MergeMasks(BitMask & comp, MasksCollection const & col)
{
	for (int i = 0; i < col.size(); ++i) {
		AddMask(comp, col[i].mask->b, col[i].combmode, i == 0);
	}
}

void MergeMasks(GreyMask & comp, MasksCollection const & col)
{
	GreyMask e;
	for (int i = 0; i < col.size(); ++i) {
		col[i].mask->g.extract(e);
		AddMask(comp, e, col[i].combmode, i == 0);
	}
}
